package de.koller.density.input;

import de.koller.density.DNode;
import de.koller.oceanFramework.gl.util.InputGL;
import de.koller.oceanFramework.tree.Child;
import org.lwjgl.input.Keyboard;

public class DInput extends DNode {

	@Child private final InputGL input = new InputGL();

	@Override
	protected void update( int elapsedTime ) {
		super.update( elapsedTime );
		
		if( input.isKeyPressed( Keyboard.KEY_F12 ) )
			droot.stop();
	}
	
}
